<div class="form-wrapper">
	<div class="form-header"><?php echo lang('section_add_header'); ?></div>
	<?php if (validation_errors()): ?>
	<div class="error-box">
		<?php echo validation_errors('<div>','</div>');?>
	</div>
	<?php endif; ?>
    
	<?php echo form_open(site_url('grading/sections/create')); ?>
	<label for="section_name"><?php echo lang('section_name'); ?></label>
	<input type="text" maxlength="30" autocomplete="off" class="ipt-txt half-width" name="name" value="<?php echo set_value('number'); ?>" />
	<br/>
	<label for="section_school_level"><?php echo lang('section_school_level'); ?></label>
	<?php echo form_dropdown('school_level',$year_level,set_value('school_level'),"id='school_level'"); ?>
	<fieldset id="action">
    <a href="#" class="btn btn-save"><span class="btn-icon disk-icon"></span><?php echo lang('section_button_save'); ?></a>
    <a href="<?php echo site_url('grading/sections'); ?>" class="btn btn-cancel"><span class="btn-icon cancel-icon"></span><?php echo lang('section_button_cancel'); ?></a>
	</fieldset>
    <?php echo form_close(); ?>
</div>
<script>
	$('.btn-save').click(function(){
		$('form').submit();
		return false;
	});
</script>